home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000313_fdc@columbia.edu_Mon Sep 29 11:22:49 EDT 2003.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  50 lines

  1. Article: 14558 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news-not-for-mail
  3. From: fdc@sesame.cc.columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Array assignment problem
  6. Date: 29 Sep 2003 11:22:45 -0400
  7. Organization: Columbia University
  8. Lines: 32
  9. Message-ID: <bl9io5$ge5$1@sesame.cc.columbia.edu>
  10. References: <Eu1db.229$3I6.194268280@newssvr11.news.prodigy.com> <bl4am6$7m1$1@sesame.cc.columbia.edu> <5MXdb.664$Rg3.532194417@newssvr11.news.prodigy.com>
  11. Reply-To: fdc@columbia.edu
  12. NNTP-Posting-Host: sesame.cc.columbia.edu
  13. X-Trace: newsmaster.cc.columbia.edu 1064848965 14344 128.59.59.56 (29 Sep 2003 15:22:45 GMT)
  14. X-Complaints-To: postmaster@columbia.edu
  15. NNTP-Posting-Date: 29 Sep 2003 15:22:45 GMT
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14558
  17.  
  18. In article <5MXdb.664$Rg3.532194417@newssvr11.news.prodigy.com>,
  19. Jun Zhang  <nugulus@netscape.net> wrote:
  20. : The assignment
  21. : \%1 = \&a[1]
  22. : didn't take effect, since
  23. : echo "\%1"
  24. : give me nothing. I intended to pass \%1 as argument to DELIVER.
  25. : Please shed me some light.
  26. There are several ways to assign values to varibles, including:
  27.  
  28.   DEFINE <variable-name> <value>
  29.   ASSIGN <variable-name> <value>
  30.  
  31. Use "help define" and "help assign" to see what the difference is.
  32.  
  33. An alternative notation can be used similar to what you are trying to do,
  34. it is described here:
  35.  
  36.   http://www.columbia.edu/kermit/ckermit70.html#x7.9
  37.  
  38. Note that to use this notation, you have to put a period before the
  39. variable name, and in this case you probably also want the "assign"
  40. operator, rather than the "define" one:
  41.  
  42.   .\%1 := \&a[1]
  43.  
  44. This is equivalent to:
  45.  
  46.   assign \%1 \&a[1]
  47.  
  48. - Frank
  49.